The CDO component provides a single object named CrystalComObject. This object works much like a Recordset or Rowset that you might use in ADO, DAO, or RDO. Rather than connecting to an existing database, though, CDO allows you to fill it with data stored in a standard Visual Basic array. Once filled with data, the entire object can be passed to the Grid Controls and the Crystal Report Engine at runtime, producing a dynamic report filled with data only available at runtime.
To create an instance of the CrystalComObject in Visual Basic, use the following code as an example:
Dim cdoRowset As Object
Set cdoRowset = CreateObject("CrystalComObject.CrystalDataObject")
The following topics are discussed in this section:
Seagate Software IMG Holdings, Inc. http://www.seagatesoftware.com Support services: http://support.seagatesoftware.com |